/**
 * <copyright>
 * </copyright>
 *
 * $Id$
 */
package org.hl7.v3;

import java.util.Arrays;
import java.util.Collections;
import java.util.List;

import org.eclipse.emf.common.util.Enumerator;

/**
 * <!-- begin-user-doc -->
 * A representation of the literals of the enumeration '<em><b>Solid Drug Form Member7</b></em>',
 * and utility methods for working with them.
 * <!-- end-user-doc -->
 * @see org.hl7.v3.V3Package#getSolidDrugFormMember7()
 * @model extendedMetaData="name='SolidDrugForm_._member_._7'"
 * @generated
 */
public enum SolidDrugFormMember7 implements Enumerator {
	/**
	 * The '<em><b>BEAD</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #BEAD_VALUE
	 * @generated
	 * @ordered
	 */
	BEAD(0, "BEAD", "BEAD"),

	/**
	 * The '<em><b>CAKE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CAKE_VALUE
	 * @generated
	 * @ordered
	 */
	CAKE(1, "CAKE", "CAKE"),

	/**
	 * The '<em><b>CEMENT</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CEMENT_VALUE
	 * @generated
	 * @ordered
	 */
	CEMENT(2, "CEMENT", "CEMENT"),

	/**
	 * The '<em><b>GUM</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #GUM_VALUE
	 * @generated
	 * @ordered
	 */
	GUM(3, "GUM", "GUM"),

	/**
	 * The '<em><b>CRYS</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #CRYS_VALUE
	 * @generated
	 * @ordered
	 */
	CRYS(4, "CRYS", "CRYS"),

	/**
	 * The '<em><b>DISK</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #DISK_VALUE
	 * @generated
	 * @ordered
	 */
	DISK(5, "DISK", "DISK"),

	/**
	 * The '<em><b>FLAKE</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #FLAKE_VALUE
	 * @generated
	 * @ordered
	 */
	FLAKE(6, "FLAKE", "FLAKE"),

	/**
	 * The '<em><b>GRAN</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #GRAN_VALUE
	 * @generated
	 * @ordered
	 */
	GRAN(7, "GRAN", "GRAN"),

	/**
	 * The '<em><b>PELLET</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #PELLET_VALUE
	 * @generated
	 * @ordered
	 */
	PELLET(8, "PELLET", "PELLET"),

	/**
	 * The '<em><b>WAFER</b></em>' literal object.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @see #WAFER_VALUE
	 * @generated
	 * @ordered
	 */
	WAFER(9, "WAFER", "WAFER");

	/**
	 * The '<em><b>BEAD</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>BEAD</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #BEAD
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int BEAD_VALUE = 0;

	/**
	 * The '<em><b>CAKE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CAKE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CAKE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CAKE_VALUE = 1;

	/**
	 * The '<em><b>CEMENT</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CEMENT</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CEMENT
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CEMENT_VALUE = 2;

	/**
	 * The '<em><b>GUM</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>GUM</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #GUM
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int GUM_VALUE = 3;

	/**
	 * The '<em><b>CRYS</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>CRYS</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #CRYS
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int CRYS_VALUE = 4;

	/**
	 * The '<em><b>DISK</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>DISK</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #DISK
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int DISK_VALUE = 5;

	/**
	 * The '<em><b>FLAKE</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>FLAKE</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #FLAKE
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int FLAKE_VALUE = 6;

	/**
	 * The '<em><b>GRAN</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>GRAN</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #GRAN
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int GRAN_VALUE = 7;

	/**
	 * The '<em><b>PELLET</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>PELLET</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #PELLET
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int PELLET_VALUE = 8;

	/**
	 * The '<em><b>WAFER</b></em>' literal value.
	 * <!-- begin-user-doc -->
	 * <p>
	 * If the meaning of '<em><b>WAFER</b></em>' literal object isn't clear,
	 * there really should be more of a description here...
	 * </p>
	 * <!-- end-user-doc -->
	 * @see #WAFER
	 * @model
	 * @generated
	 * @ordered
	 */
	public static final int WAFER_VALUE = 9;

	/**
	 * An array of all the '<em><b>Solid Drug Form Member7</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private static final SolidDrugFormMember7[] VALUES_ARRAY =
		new SolidDrugFormMember7[] {
			BEAD,
			CAKE,
			CEMENT,
			GUM,
			CRYS,
			DISK,
			FLAKE,
			GRAN,
			PELLET,
			WAFER,
		};

	/**
	 * A public read-only list of all the '<em><b>Solid Drug Form Member7</b></em>' enumerators.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static final List<SolidDrugFormMember7> VALUES = Collections.unmodifiableList(Arrays.asList(VALUES_ARRAY));

	/**
	 * Returns the '<em><b>Solid Drug Form Member7</b></em>' literal with the specified literal value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SolidDrugFormMember7 get(String literal) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			SolidDrugFormMember7 result = VALUES_ARRAY[i];
			if (result.toString().equals(literal)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Solid Drug Form Member7</b></em>' literal with the specified name.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SolidDrugFormMember7 getByName(String name) {
		for (int i = 0; i < VALUES_ARRAY.length; ++i) {
			SolidDrugFormMember7 result = VALUES_ARRAY[i];
			if (result.getName().equals(name)) {
				return result;
			}
		}
		return null;
	}

	/**
	 * Returns the '<em><b>Solid Drug Form Member7</b></em>' literal with the specified integer value.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public static SolidDrugFormMember7 get(int value) {
		switch (value) {
			case BEAD_VALUE: return BEAD;
			case CAKE_VALUE: return CAKE;
			case CEMENT_VALUE: return CEMENT;
			case GUM_VALUE: return GUM;
			case CRYS_VALUE: return CRYS;
			case DISK_VALUE: return DISK;
			case FLAKE_VALUE: return FLAKE;
			case GRAN_VALUE: return GRAN;
			case PELLET_VALUE: return PELLET;
			case WAFER_VALUE: return WAFER;
		}
		return null;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final int value;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String name;

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private final String literal;

	/**
	 * Only this class can construct instances.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	private SolidDrugFormMember7(int value, String name, String literal) {
		this.value = value;
		this.name = name;
		this.literal = literal;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public int getValue() {
	  return value;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getName() {
	  return name;
	}

	/**
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	public String getLiteral() {
	  return literal;
	}

	/**
	 * Returns the literal value of the enumerator, which is its string representation.
	 * <!-- begin-user-doc -->
	 * <!-- end-user-doc -->
	 * @generated
	 */
	@Override
	public String toString() {
		return literal;
	}
	
} //SolidDrugFormMember7
